// 对外暴露配置路由（常量路由）
const constantRoutes = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/view/login/index.vue'),
    meta: {
      title: '登录',
    },
  },
  {
    path: '/',
    name: 'layout',
    component: () => import('@/view/home/index.vue'),
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/view/404/index.vue'),
    meta: {
      title: '404',
    },
  },
  { path: '/:pathMatch(.*)*', redirect: '/404', name: 'Any' },
]
export default constantRoutes
